import Vue from "vue";
import Router from "vue-router";

import Demo1 from '@/views/demo/DemoModelGltf.vue';
import Demo2 from '@/views/demo/DemoAnimationMixer.vue'

Vue.use(Router);

const routes = [{ //定义重定向路由
		path: "/",
		redirect: "/demo1",
	},
	{
		path: "/demo1", //路由的路径
		name: "demo1", //路由的名字
		component: Demo1, //路由组件       
	},

	{
		path: '/demo2',
		name: 'demo2',
		component: Demo2,
	},


];

let router = new Router({
	routes,
});

export default router;
